package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.StudentLeave;
import com.ruoyi.system.mapper.StudentLeaveMapper;
import com.ruoyi.system.service.StudentLeaveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentLeaveServiceImpl implements StudentLeaveService {
    @Autowired private StudentLeaveMapper studentLeaveMapper;

    @Override
    public void submit(StudentLeave studentLeave) {
        this.studentLeaveMapper.insert(studentLeave);
    }

    @Override
    public List<StudentLeave> selectStudentLeave(Integer studentId) {
        return this.studentLeaveMapper.selectByStudentId(studentId);
    }
}
